import { IsNotEmpty } from "class-validator";

export class CreateNewCarClueDto {
  @IsNotEmpty({message: '线索名称不能为空'})
  clueName: string

  @IsNotEmpty({message: '指导价不能为空'})
  cluePrice: number

  @IsNotEmpty({message: '品牌不能为空'})
  brand: string

  energy?: number

  emissionStandard: string

  gearbox?: string

  location?: string

  @IsNotEmpty({message: '联系电话不能为空'})
  phone: string

  description?: string
  
  @IsNotEmpty({message: '所需积分不能为空'})
  useCoin: number
}
